package com.authentications.filter.unrealizeds;

import com.authentications.utils.SpringContextUtils;

import java.util.Map;

/**
 * @ClassName JWTGainProcessor
 * @Author xiezhuocai
 * @Description 执行JWTGain的子类
 * @Date 2021/12/15 15:17
 */
public class JWTGainProcessor {
    public void gain(Object prams){
        //通过spring获取类
        Map<String, JWTGain> beans = SpringContextUtils.getBeansOfType(JWTGain.class);
        if (!beans.isEmpty()) {
            //批量执行
            beans.forEach((key,value)->{
                value.gain(prams);
            });
        }
    }
}
